home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher1.12 / gopherd / gopherd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-15  |  2.4 KB  |  111 lines

  1. /********************************************************************
  2.  * $Author: lindner $
  3.  * $Revision: 1.3 $
  4.  * $Date: 1993/01/15 20:22:00 $
  5.  * $Source: /home/mudhoney/GopherSrc/gopher1.11b/gopherd/RCS/gopherd.h,v $
  6.  * $State: Rel $
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: gopherd.h
  14.  * Header file for gopher server.
  15.  *********************************************************************
  16.  * Revision History:
  17.  * $Log: gopherd.h,v $
  18.  * Revision 1.3  1993/01/15  20:22:00  lindner
  19.  * Added Stdlib.h.  needed for atof()
  20.  *
  21.  * Revision 1.2  1993/01/11  19:20:47  lindner
  22.  * Added signal.h
  23.  *
  24.  * Revision 1.1  1992/12/10  23:13:27  lindner
  25.  * gopher 1.1 release
  26.  *
  27.  *
  28.  *********************************************************************/
  29.  
  30.  
  31. #include "conf.h"
  32.  
  33. #include <ctype.h>
  34. #include <stdio.h>
  35.  
  36.  
  37. #include <sys/types.h>
  38. #include <Stdlib.h>
  39.  
  40. /*** Stuff for sockets****/
  41. #include <sys/socket.h>
  42. #include <netinet/in.h>
  43. #include <netdb.h>
  44. #ifndef hpux
  45. #include <arpa/inet.h>
  46. #endif
  47.  
  48.  
  49. #include <pwd.h>
  50. #include <errno.h>
  51.  
  52. /** For logfile locking... **/
  53. #if !defined(NeXT) && !defined(mips) && !defined(UMAX43) && !defined(sequent) && !defined(sony_news)
  54. #  include <unistd.h>
  55. #  include <fcntl.h>
  56. #else
  57. #  include <fcntl.h>
  58. #  include <sys/file.h>
  59. #  ifndef SEEK_END
  60. #    define SEEK_END L_XTND
  61. #    define SEEK_SET L_SET
  62. #  endif
  63. #endif
  64.  
  65. extern int errno;
  66.  
  67. #include "String.h"
  68.  
  69. #include <signal.h>
  70. #include <sys/stat.h>
  71. #include <time.h>
  72.  
  73. #include <sys/param.h>
  74. /* This might be in <sys/param.h>, usually 64 */
  75. #ifndef MAXHOSTNAMELEN
  76. #define MAXHOSTNAMELEN                (64)
  77. #endif
  78.  
  79. #ifndef NOFILE
  80. #define NOFILE (100)
  81. #endif
  82.  
  83. #ifndef MAXPATHLEN
  84. #define MAXPATHLEN (512)
  85. #endif
  86.  
  87.  
  88.  
  89. #include "GDgopherdir.h"
  90. #include "Dirent.h"
  91.  
  92. /*
  93.  * Make sure we don't accidentally use a library routine instead of our
  94.  * private restricted version.  Need to avoid the stat in struct stat
  95.  * getting clobbered by the #define for the routine.
  96.  */
  97. typedef struct stat STATSTR;
  98. #include "openers.h"
  99. #define open    barf_ropen
  100. #define fopen    barf_rfopen
  101. #define stat    barf_rstat
  102. #define opendir    barf_ropendir
  103. #define chdir    barf_rchdir
  104.  
  105. #include "compatible.h"
  106. #include "util.h"
  107. #include "gopherdconf.h"
  108.  
  109. /*** This one must be last ***/
  110. #include "globals.h"
  111.